package com.leal.client;

import java.util.HashSet;
import java.util.Map;

/**
 * @Classname bigdata
 * @Description ESINFO 类，加上setting和mapping
 * @Date 2024/8/5 16:18
 * @Created by leal
 */
public class ESInfo {

    //setting 配置
    private Map<String, Object> settings;
    //mappingd
    private Map<String, Object> mappings;
    // es mapping
    public HashSet<ESMapping> esMappingHashSet;

    public Map<String, Object> getSettings() {
        return settings;
    }

    public Map<String, Object> getMappings() {
        return mappings;
    }

    public HashSet<ESMapping> getEsMappingHashSet() {
        return esMappingHashSet;
    }

    public void setEsMappingHashSet(HashSet<ESMapping> esMappingHashSet) {
        this.esMappingHashSet = esMappingHashSet;
    }

    //构造函数
    public ESInfo(Map<String, Object> settings, Map<String, Object> mappings, HashSet<ESMapping> esMappingHashSet) {
        this.settings = settings;
        this.mappings = mappings;
        this.esMappingHashSet = esMappingHashSet;
    }

    public ESInfo(HashSet<ESMapping> esMappingHashSet) {
        this.esMappingHashSet = esMappingHashSet;
    }

    public ESInfo() {
    }

    @Override
    public String toString() {
        return "ESInfo{" +
                "settings=" + settings +
                ", mappings=" + mappings +
                ", esMappingHashSet=" + esMappingHashSet +
                '}';
    }
}
